Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; } li { float: left; } a:link, a:visited { display: block; width: 120px; font-weight: bold; color: #FFFFFF; background-color: #98bf21; text-align: center; padding: 4px; text-decoration: none; text-transform: uppercase; } a:hover, a:active { background-color: #7A991A; } </style> </head> <body> <ul> <li><a href="#home">Home</a></li> <li><a href="#news">News</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#about">About</a></li> </ul> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_navbar_horizontal_float_advanced by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:23:40 GMT --> </html>
Result:
Try it Yourself - © w3schools.com